package com.ssh.template.method;

import java.util.List;

import freemarker.template.SimpleHash;
import freemarker.template.TemplateHashModel;
import freemarker.template.TemplateMethodModel;
import freemarker.template.TemplateModelException;

public class MapRemove implements TemplateMethodModel {

	@Override
	public Object exec(List params) throws TemplateModelException {
		SimpleHash hash=(SimpleHash)params.get(0);
		String key=(String)params.get(1);
		hash.remove(key);
		return hash;
	}

}
